package com.yunyi.dm.decorator;

/**
 * 培根类
 * 具体的装饰者角色
 *
 * @author yunyi
 */
public class Bacon extends Garnish {

    public Bacon(FastFood fastFood) {
        super(3, "培根", fastFood);
    }

    @Override
    float cost() {
        return getPrice() + getFastFood().cost();
    }

    @Override
    public String getDesc() {
        return super.getDesc() + getFastFood().getDesc();
    }
}
